using Microsoft.AspNetCore.Mvc;
using StudentVideo.Common.Attributes;
using StudentVideo.Helper;
using StudentVideo.Shared.Enums;

namespace StudentVideo.Controllers;

[ApiController]
[Route("api/[controller]/[action]")]
[UserRangeLimit(UserRangeEnum.Internal)]
public class TextController(RedisDbHelper redisDb): ControllerBase {
   private readonly RedisDbHelper _redisDb = redisDb;

   /// <summary>
   /// 测试
   /// </summary>
   [HttpPost("/")]
   // [AllowAnonymous]
   public async void Text() {
      await _redisDb.Db.StringSetAsync("123", "222");

      return;
   }
}
